package com.flyou.ccnucenter.adapter;

import android.content.Context;
import android.net.Uri;
import android.view.View;

import com.facebook.drawee.view.SimpleDraweeView;
import com.flyou.ccnucenter.R;

import java.util.List;

/**
 * ============================================================
 * 项目名称：ChildDevelopmentAssistant
 * 包名称：com.e1858.childassistant.adapter
 * 文件名：LostFoundDetialImageGridViewAdapter
 * 类描述：
 * 创建人：flyou
 * 邮箱：fangjaylong@gmail.com
 * 创建时间：2015/12/21 17:04
 * 修改备注：
 * 版本：@version  V1.0
 * ============================================================
 */
public class LostFoundDetialImageGridViewAdapter extends SimpleBaseAdapter{

    public LostFoundDetialImageGridViewAdapter(Context context, List<String> data) {
        super(context, data);
    }

    @Override
    public int getItemResource() {
       return R.layout.view_lostfound_detial_photo_gridview_item;
    }

    @Override
    public View getItemView(int position, View convertView, ViewHolder holder) {
        String url;
        Object item = getItem(position);
        url=(String)item;
        SimpleDraweeView imageView = (SimpleDraweeView) holder.getView(R.id.imageView);
        imageView.setImageURI(Uri.parse(url));
        return convertView;

    }
}
